package br.com.rafsoft.mapaentrega.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.ServiceName;

@ServiceName("br.com.rafsoft.mapaentrega.server.MapaEntregaService")
public interface UserRequest extends RequestContext {

	Request<UserProxy> createUser();

	Request<UserProxy> readUser(Long id);

	Request<UserProxy> updateUser(UserProxy user);

	Request<Void> deleteUser(UserProxy user);

	Request<List<UserProxy>> queryUsers();
	
	Request<UserProxy> login(String user, String password);

}
